<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min.js"></script>
    <style>
        div {
            position: absolute;
            width: 250px;
            height: 500px;
            background-color: palevioletred;
        }
    </style>
</head>

<body>
    <button>动起来</button>
    <div></div>
    <script>
        $("button").click(function() {
            $("div").animate({
                left: 500,
                top: 500,
                opacity: 0
            }, 10000);
        })
    </script>

</body>

</html>